﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin.aspx.cs" Inherits="maptest.admin" %>
<%@ Register TagPrefix="cc1" Namespace="ThinkGeo.MapSuite.WebEdition" Assembly="WebEdition" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" style="border: none">
<head runat="server">
    <title>admin</title>
    <script type="text/javascript">
        function OnOverlaysDrawing(layers) {

            for (var index = 0; index < layers.length; index++) {
                var templayer = layers[index];
                if (OpenLayers.String.contains(templayer.CLASS_NAME, 'Google')) {

                    templayer.MIN_ZOOM_LEVEL = 13;
                    templayer.MAX_ZOOM_LEVEL = 20;
                }
            }
        }
    </script>
</head>
<body style="border: none">
    
    <form id="form1" runat="server">
    
    <div style="width: 980px;height: 625px; margin: auto;padding: 10px; ">
        
        <asp:Label ID="Label8" runat="server" Text="Chọn lớp: "></asp:Label>
        <asp:DropDownList ID="DDLayer" runat="server" Height="24px" style="margin-left: 12px" Width="163px" AutoPostBack="True" OnSelectedIndexChanged="DDLayer_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:Label ID="Label11" runat="server" Text="" ></asp:Label>
        <asp:Label ID="LblType" runat="server" Text="type" Visible="False"></asp:Label>
        <br />
        
        <asp:Label ID="Label1" runat="server" Text="Kiểu :    "></asp:Label>
        <asp:DropDownList ID="DDTypeStyle" runat="server" Height="25px" style="margin-left: 34px" Width="164px" AutoPostBack="True" OnSelectedIndexChanged="DDTypeStyle_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="Hatch">Hatch</asp:ListItem>
            <asp:ListItem>Solid</asp:ListItem>
            <asp:ListItem>Linear</asp:ListItem>
            <asp:ListItem>Texture</asp:ListItem>
        </asp:DropDownList>
        <br /><br/>
        
        <div style="width: 698px; height:512px;float: right;">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <cc1:Map ID="Map1" runat="server" Height="512px" Width="698px" ></cc1:Map>
            </ContentTemplate>
                </asp:UpdatePanel>
        </div>
         
        <div style="width: 258px; float: left;">
            
            <div style="width: 218px; padding: 20px;height: 260px;border: 1px solid #333">
            <asp:Label ID="Label2" runat="server" Text="Màu sắc: "></asp:Label>
            <asp:TextBox ID="txtColor" runat="server" style="margin-left: 53px" Width="93px"></asp:TextBox>
            <br />
            <asp:Label ID="Label6" runat="server" Text="Kiểu Hatch :"></asp:Label>
            <asp:DropDownList ID="DDStyleHatch" runat="server" Height="24px" style="margin-left: 37px" Width="98px">
                <asp:ListItem Value="1">Cross</asp:ListItem>
                <asp:ListItem Value="2">LightDownwardDiagonal</asp:ListItem>
                <asp:ListItem Value="3">LightUpwardDiagonal</asp:ListItem>
                <asp:ListItem Value="4">DarkDownwardDiagonal</asp:ListItem>
                <asp:ListItem Value="5">DarkUpwardDiagonal</asp:ListItem>
                <asp:ListItem Value="6">WideDownwardDiagonal</asp:ListItem>
                <asp:ListItem Value="7">WideUpwardDiagonal</asp:ListItem>
            </asp:DropDownList>
            <br />
            <asp:Label ID="Label7" runat="server" Text="Màu Hatch:"></asp:Label>
            <asp:TextBox ID="txtColorHatch" runat="server" style="margin-left: 43px" Height="16px" Width="94px"></asp:TextBox>
            <br />
            Màu nền hatch:<asp:TextBox ID="txtColorBackHatch" runat="server" style="margin-left: 25px" Width="88px"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Màu đường viền: "></asp:Label>
            <asp:TextBox ID="TxtColorBorder" runat="server" style="margin-left: 10px" Width="88px"></asp:TextBox>
            <br />
            <asp:Label ID="Label4" runat="server" Text="Độ rộng đường viền: "></asp:Label>
            <asp:TextBox ID="txtBorderWidth" runat="server" style="margin-left: 11px" Width="70px"></asp:TextBox>
            <br />
            <asp:Label ID="Label5" runat="server" Text="Kiểu đường viền: "></asp:Label>
            <asp:DropDownList ID="DDTypeBorder" runat="server" Height="25px" style="margin-left: 12px" Width="99px">
                <asp:ListItem Value="1">Dash</asp:ListItem>
                <asp:ListItem Value="2">Dot</asp:ListItem>
                <asp:ListItem Value="3">Solid</asp:ListItem>
                <asp:ListItem Value="4">DashDotDot</asp:ListItem>
                <asp:ListItem Value="5">DashDot</asp:ListItem>
            </asp:DropDownList>
            
            </div>
            
            <div style="width: 238px;height: 150px;border: 1px solid #333;margin-top: 10px; margin-left: 0px;padding: 10px;">
                <asp:Label ID="Label9" runat="server" Text="Zoom min: "></asp:Label>
                <asp:DropDownList ID="DDZoomMin" runat="server" Height="22px" Width="90px" style="margin-left: 24px">
                    <asp:ListItem Selected="True">1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                </asp:DropDownList>
                <br />
                <asp:Label ID="Label10" runat="server" Text="Zoom max: "></asp:Label>
                <asp:DropDownList ID="DDZoomMax" runat="server" Height="22px" Width="90px" style="margin-left: 20px">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem Selected="True">20</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" style="margin-left: 20px; margin-top: 8px" Text="Lưu" Width="98px" />
        
            <asp:Button ID="BtnView" runat="server" OnClick="BtnView_Click" style="margin-left: 20px; width: 98px;" Text="Xem trước" />
        
       
    </div>
        
   
    </form>
        
</body>
</html>
